<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Szy1000</title>
	<script src="js/jquery.min.js"></script>
	<script>
		$(document).ready(function () {
			$("#toggle").click(function(){
				if($("#bgMusic").get(0).paused){
					$("#bgMusic").get(0).play()
					$("#toggle").val("play");
				}else{
					$("#bgMusic").get(0).pause();
					$("#toggle").val("stop");
				}
			})
			
		})
	</script>
</head>
<body>
	<p><a href="index.html">javascript</a></p>
	<p><a href="#">jquery</a></p>
	<h2>jquery</h2>
	<input type="button" value="stop" id="toggle">
	<audio id="bgMusic" >
    <source src="music/bgm.mp3" type="audio/mp3">
    <source src="music/bgm.ogg" type="audio/ogg">
	</audio>
</body>
</html>